package com.dd;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;


@EnableFeignClients  //开启Feign客户端配置
//@EnableCaching   //开启缓存
@Configuration
@EnableAutoConfiguration
@SpringBootApplication
//引入springsecurity相关配置内容
@ComponentScan({"com.dd.framework","com.dd.web"})
public class DdApiApplication {

    public static void main(String[] args) {
        try {
            SpringApplication.run(DdApiApplication.class, args);
        }catch (Exception e){
            e.printStackTrace();
        }
    }

}
